

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'student.label', default: 'Student')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton">
            <g:if test="${params.searchFlag}">
                <g:link class="list" controller="studentMgr" action="studentSearchList"><g:message code="default.list.label" args="['学生']" /></g:link>
         </g:if>
         <g:else>
                <g:link controller="studentMgr" class="list" action="list"><g:message code="default.list.label" args="['学生']" /></g:link>
         </g:else>
         </span>
        </div>
            <div class="dialog">
                <table>
                    <tbody>
                    
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.name.label" default="Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: studentInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.sex.label" default="Sex" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: studentInstance, field: "sex")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.birthday.label" default="Birthday" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${studentInstance?.birthday}" /></td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.enabled.label" default="Enabled" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${studentInstance?.enabled}" /></td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.classes.label" default="Classes" /></td>
                            
                            <td valign="top" class="value">${studentInstance?.classes?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.state.label" default="State" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${!studentInstance?.state}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.source.label" default="Source" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: studentInstance, field: "source")}</td>
                            
                        </tr>
                     
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="student.level.label" default="Level" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: studentInstance, field: "level")}</td>
                            
                        </tr>

                                                <tr class="prop">
                            <td valign="top" class="name"><g:message code="parent.label" default="监护人" /></td>
                            
                            <td valign="top" class="value">${studentInstance?.parent?.name?.encodeAsHTML()}（${studentInstance?.parent?.relation?.encodeAsHTML()}）</td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="parent.label" default="监护人" /><g:message code="parent.mobile.label"/></td>
                            
                            <td valign="top" class="value">${studentInstance?.parent?.mobile?.encodeAsHTML()}</td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="parent.label" default="监护人" /><g:message code="parent.phone.label"/></td>
                            
                            <td valign="top" class="value">${studentInstance?.parent?.phone?.encodeAsHTML()}</td>
                            
                        </tr>
                      
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <input type="button" value="${message(code: 'default.button.return.label', default: '返回')}" onclick="javascript:history.go(-1)">
            </div>
        </div>
    </body>
</html>
